package com.dl;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.session.data.redis.config.annotation.web.http.EnableRedisHttpSession;
import org.springframework.transaction.annotation.EnableTransactionManagement;

@SpringBootApplication
@EnableAsync
@EnableTransactionManagement//开启事务支持
@EnableRedisHttpSession//开启redis全局管理session，相当于全局的拦截器，所有请求优先到redis取session
@EnableConfigurationProperties

public class Huixuexi {

    public static void main(String[] args) {
        SpringApplication.run(Huixuexi.class, args);
    }

}
